package com.qcloud.domain;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by YYY on 2017/7/9.
 */
public class LiveMsgAvRecordCreatedDO extends LiveMsgBaseDO{

    /**
     * 点播用vid，在点播平台可以唯一定位一个点播视频文件
     */
    @JSONField(name = "video_id")
    private String videoId;

    /**
     * 点播视频的下载地址
     */
    @JSONField(name = "video_url")
    private String videoUrl;

    /**
     * 文件大小
     */
    @JSONField(name = "file_size")
    private long fileSize;

    /**
     * {@link com.qcloud.constant.LiveRecordFileFormat},文件格式	flv, hls, mp4
     */
    @JSONField(name = "file_format")
    private String fileFormat;

    @JSONField(name = "file_id")
    private String fileId;

    /**
     * 分片开始时间戳
     */
    @JSONField(name = "start_time")
    private long startTime;

    /**
     * 分片结束时间戳
     */
    @JSONField(name = "end_time")
    private long endTime;

    /**
     * 推流时长
     */
    @JSONField(name = "duration")
    private long duration;

    /**
     * 推流url参数
     */
    @JSONField(name = "stream_param")
    private String streamParam;

    /**
     * 录制文件id
     */
    @JSONField(name = "record_file_id")
    private String recordFileId;

    /**
     * 是否开启点播2.0 0表示未开启，1表示开启
     */
    @JSONField(name = "vod2Flag")
    private int vod2Flag;

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileFormat() {
        return fileFormat;
    }

    public void setFileFormat(String fileFormat) {
        this.fileFormat = fileFormat;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getStreamParam() {
        return streamParam;
    }

    public void setStreamParam(String streamParam) {
        this.streamParam = streamParam;
    }

    public String getRecordFileId() {
        return recordFileId;
    }

    public void setRecordFileId(String recordFileId) {
        this.recordFileId = recordFileId;
    }

    public int getVod2Flag() {
        return vod2Flag;
    }

    public void setVod2Flag(int vod2Flag) {
        this.vod2Flag = vod2Flag;
    }
}
